import { forwardRef, useEffect } from "react";
import { cn } from "@/cuicui/utils/cn";

const ModernSimpleInput = forwardRef(({ className, type, ...props }, ref) => {
  useEffect(() => {}, []);

  return (
    <input
      id="LOGIN_PASSWORD_INPUT"
      className={cn(
        "flex h-8 w-full  border px-3 py-2 text-sm ring-0 focus:ring-0 transition focus-visible:outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
        // Colors
        "border-neutral-400/20 bg-white/70 hover:bg-white/50 dark:bg-neutral-800 dark:hover:bg-neutral-800/50",
        " placeholder:text-neutral-400 focus-visible:border-neutral-400/50",
        // File
        "file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm",
        className
      )}
      ref={ref}
      type={type}
      {...props}
    />
  );
});
ModernSimpleInput.displayName = "Modern Simple Input";

export { ModernSimpleInput };
